feat(agents): add code-explorer and code-architect agents#60
Conversation
Add a new agent that specializes in tracing and understanding feature implementations across codebases by mapping architecture layers, execution paths, and dependencies.
Add a new agent that designs feature architectures by analyzing existing codebase patterns and providing comprehensive implementation blueprints with file mappings, component designs, and build sequences.
Summary of ChangesHello @amondnet, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly expands the agent capabilities by integrating two specialized agents: Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces two new agents, code-explorer and code-architect, for codebase analysis and architecture design. The agent definitions are well-structured and detailed. My review focuses on enhancing their effectiveness by suggesting they leverage the powerful ast-grep skill for structural code analysis, which appears to be a core capability of the platform. This will enable them to perform their tasks more accurately and efficiently.
| ## Core Process | ||
|
|
||
| **1. Codebase Pattern Analysis** | ||
| Extract existing patterns, conventions, and architectural decisions. Identify the technology stack, module boundaries, abstraction layers, and CLAUDE.md guidelines. Find similar features to understand established approaches. |
There was a problem hiding this comment.
To improve the agent's ability to analyze codebase patterns, it's beneficial to explicitly guide it to use the ast-grep skill. This tool is designed for structural code search and will make the analysis more powerful and accurate.
| Extract existing patterns, conventions, and architectural decisions. Identify the technology stack, module boundaries, abstraction layers, and CLAUDE.md guidelines. Find similar features to understand established approaches. | |
| Extract existing patterns, conventions, and architectural decisions, leveraging structural search with Skill("ast-grep") where possible. Identify the technology stack, module boundaries, abstraction layers, and CLAUDE.md guidelines. Find similar features to understand established approaches. |
| Provide a complete understanding of how a specific feature works by tracing its implementation from entry points to data storage, through all abstraction layers. | ||
|
|
||
| ## Analysis Approach | ||
|
|
There was a problem hiding this comment.
The code-explorer agent's primary mission is to trace and analyze code. The ast-grep skill is an extremely powerful tool for this. Explicitly mentioning it in the analysis approach will guide the agent to use it, leading to more effective and deeper code exploration.
| You should leverage structural search tools like Skill("ast-grep") to efficiently trace code, identify patterns, and understand relationships between different parts of the codebase. |
Summary
Changes
code-explorer agent
code-architect agent
Test plan